package com.qfedu.service.impl;

import com.qfedu.dao.NoticeDao;
import com.qfedu.dao.impl.NoticeDaoImpl;
import com.qfedu.model.Notice;
import com.qfedu.service.NoticeService;

import java.util.List;

/**
 * @author lenovo
 * @version 1.0
 * @date 2023/4/18 10:27Filter
 * @poject bloo
 */
public class NoticeServiceImpl implements NoticeService {
    private NoticeDao noticeDao=new NoticeDaoImpl();
    @Override
    public List<Notice> findAllNotice() {
        return noticeDao.findAllNotice();
    }

    @Override
    public int addNotice(Notice notice) {
        return noticeDao.addNotice(notice);
    }

    @Override
    public int updateNotice(Notice notice) {
        return noticeDao.updateNotice(notice);
    }

    @Override
    public int deleteNotice(int id) {
        return noticeDao.deleteNotice(id);
    }

    public Notice findNoticeById(int id) {
        return noticeDao.findNoticeById(id);
    }
}
